package com.niit.user.service;


import com.niit.user.mapper.C6UserMapper;
import com.niit.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yaojianfeng
 */
@Service
public class UserService {

    @Autowired
    private C6UserMapper c6UserMapper;

    public User queryById(String id) {
        return c6UserMapper.findById(id);
    }

    public User updateById(User user) {
        c6UserMapper.updateById(user);
        return c6UserMapper.findById(user.getId());
    }

    public List<User> findAll(List ids) {
        return c6UserMapper.findAll(ids);
    }
}